import 'package:flutter/material.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.yellow),
      home: Scaffold(
        appBar: AppBar(title: const Text('Flutter app')),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      padding: EdgeInsets.all(10),
      children: [
        Container(
          height: 44,
          padding: EdgeInsets.fromLTRB(0, 10, 0, 0),
          child: Text(
            '我是一个标题',
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 22, color: Colors.red),
          ),
        ),
        Image.network('https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain'),
        Container(
          height: 44,
          padding: EdgeInsets.fromLTRB(0, 10, 0, 0),
          child: Text(
            '我是一个标题',
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 22, color: Colors.orange),
          ),
        ),
        SizedBox(),
        Image.network('https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain'),
        SizedBox(),
        Image.network('https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain'),
        SizedBox(),
        Image.network('https://tse3-mm.cn.bing.net/th/id/OIP-C.FYx55PIoNajL-lEV5UhFlAHaNK?rs=1&pid=ImgDetMain'),
        SizedBox(),
      ],
    );
  }
}
